<?php /*a:2:{s:91:"D:\p\phpstudy_pro\WWW\zhengmaotong\public/themes/admin_simpleboot3/project\goods\index.html";i:1718951113;s:85:"D:\p\phpstudy_pro\WWW\zhengmaotong\public/themes/admin_simpleboot3/public\header.html";i:1691028981;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <!-- Set render engine for 360 browser -->
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- HTML5 shim for IE8 support of HTML5 elements -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <![endif]-->


    <link href="/themes/admin_simpleboot3/public/assets/themes/<?php echo cmf_get_admin_style(); ?>/bootstrap.min.css" rel="stylesheet">
    <link href="/themes/admin_simpleboot3/public/assets/simpleboot3/css/simplebootadmin.css" rel="stylesheet">
    <link href="/static/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <!--[if lt IE 9]>
    <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <style>
        form .input-order {
            margin-bottom: 0px;
            padding: 0 2px;
            width: 42px;
            font-size: 12px;
        }

        form .input-order:focus {
            outline: none;
        }

        .table-actions {
            margin-top: 5px;
            margin-bottom: 5px;
            padding: 0px;
        }

        .table-list {
            margin-bottom: 0px;
        }

        .form-required {
            color: red;
        }

        .td-actions .btn {
            margin-bottom: 2px;
            min-width: 96px;
            text-align: center;
        }

        .td-actions .btn:last-child {
            margin-bottom: 0;
        }
        a:hover, a:focus{
            text-decoration: none;
        }
    </style>
    <?php 
		$is_mobile=cmf_is_mobile();
        $_static_version='1.0.4';
        $cmf_version=cmf_version();
        if (strpos(cmf_version(), '6.') === 0) {
            $_app=app()->http->getName();
        }else{
            $_app=request()->module();
        }
     ?>
    <script type="text/javascript">
        //全局变量
        var GV = {
            ROOT: "/",
            WEB_ROOT: "/",
            JS_ROOT: "static/js/",
            APP: '<?php echo $_app; ?>'/*当前应用名*/,
            IS_MOBILE: <?php echo !empty($is_mobile) ? 'true'  :  'false'; ?>
        };
    </script>
    <script src="/themes/admin_simpleboot3/public/assets/js/jquery-1.12.4.min.js"></script>
    <script src="/themes/admin_simpleboot3/public/assets/js/jquery-migrate-1.4.1.min.js"></script>
<!--    <script src="/themes/admin_simpleboot3/public/assets/js/jquery-3.6.0.min.js"></script>-->
    <script src="/static/js/wind.js"></script>
    <script src="/themes/admin_simpleboot3/public/assets/js/bootstrap.min.js"></script>
    <script>
        Wind.css('artDialog');
        Wind.css('layer');
        $(function () {
            $("[data-toggle='tooltip']").tooltip({
                container: 'body',
                html: true,
            });
            $("li.dropdown").hover(function () {
                $(this).addClass("open");
            }, function () {
                $(this).removeClass("open");
            });
        });
    </script>
    <?php if(APP_DEBUG): ?>
        <style>
            #think_page_trace_open {
                z-index: 9999;
            }
        </style>
    <?php endif; ?>

</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="<?php echo url('Goods/index'); ?>">商品表</a></li>
        <li><a href="<?php echo url('Goods/add'); ?>">添加商品</a></li>
    </ul>
    <form class="well form-inline margin-top-20" method="get" action="<?php echo url('Goods/index'); ?>">
        <input type="text" class="form-control" name="select" style="width: 120px;"  placeholder="支持名称、运费、展示状态">
        <input type="submit" class="btn btn-primary" value="搜索" />
        <a class="btn btn-danger" href="<?php echo url('Goods/index'); ?>">清空</a>
    </form>
    <table class="table table-hover table-bordered table-list">
        <thead>
        <tr>
            <th width="16"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
            <th width="50">排序</th>
            <th width="50">ID</th>
            <th width="100">商品名称</th>
            <th width="100">封面图片</th>
            <th width="100">商品图片</th>
            <th width="100">运费</th>
            <th width="130">创建时间</th>
            <th width="130">修改时间</th>
            <th width="50">是否自营</th>
            <th width="50"><?php echo lang('STATUS'); ?></th>
            <th width="120"><?php echo lang('ACTIONS'); ?></th>
        </tr>
        </thead>
        <tbody>
        <?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): if( count($list)==0 ) : echo "" ;else: foreach($list as $key=>$vo): ?>
            <tr>
                <td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value=""></td>
                <td><input name='' class="input input-order mr5" type='text' size='3' value=''></td>
                <td><?php echo $vo['id']; ?></td>
                <td><?php echo $vo['name']; ?></td>
                <td><img src="<?php echo $vo['images']; ?>" width="100px"></td>
                <td><img src="<?php echo $vo['image']; ?>" width="100px"></td>
                <td><?php echo $vo['freight']; ?></td>
                <td><?php echo $vo['create_time']; ?></td>
                <td><?php echo $vo['update_time']; ?></td>
                <td>
                    <?php switch($vo['zy']): case "1": ?><a href="<?php echo url('Goods/show'); ?>?id=<?php echo $vo['id']; ?>" class="js-ajax-dialog-btn" data-msg="是否不自营？"><button type="button" class="btn btn-success">是</button></a><?php break; case "0": ?><a href="<?php echo url('Goods/show'); ?>?id=<?php echo $vo['id']; ?>" class="js-ajax-dialog-btn" data-msg="是否自营？"><button type="button" class="btn btn-danger">否</button></a><?php break; ?>
                    <?php endswitch; ?>
                </td>
                <td width="100px">
                    <?php if(($vo['status'] == 0)): ?><div class="btn btn-warning">不展示</div><?php endif; if(($vo['status'] == 1)): ?><div class="btn btn-success">展示</div><?php endif; if(($vo['status'] == 2)): ?><div class="btn btn-danger">缺货</div><?php endif; ?>
                </td>
                <td>
                    <div class="btn-group " role="group">
                        <button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown" aria-haspopup="ture" aria-expanded="false">
                            商品配置 <span class="caret"></span>
                        </button>
                        <ul class="dropdown-menu">
                            <li>
                                <a href="javascript:void(0);" onclick="openIframeLayer('<?php echo url("Goods/setGoodsAttr"); ?>?goods_id=<?php echo $vo['id']; ?>','商品配置属性',{area:['60%','80%']})">配置属性</a>
                            </li>
                            <li>
                                <a href="javascript:void(0);" onclick="openIframeLayer('setAttr?goods_id=<?php echo $vo['id']; ?>','商品配置属性',{area:['60%','80%']})">配置属性</a>
                            </li>
                            <li>
                                <a href="javascript:void(0);" onclick="openIframeLayer('setGoods?goods_id=<?php echo $vo['id']; ?>','商品配置属性',{area:['60%','80%']})">配置属性</a>
                            </li>
                        </ul>
                    </div>
                    <a class="btn btn-xs btn-primary" href="<?php echo url('Goods/edit'); ?>?id=<?php echo $vo['id']; ?>"><?php echo lang('EDIT'); ?></a>
                    <a class="btn btn-xs btn-danger js-ajax-delete" href="<?php echo url('Goods/delete'); ?>?id=<?php echo $vo['id']; ?>"><?php echo lang('DELETE'); ?></a>
                </td>
            </tr>
        <?php endforeach; endif; else: echo "" ;endif; ?>
        </tbody>
    </table>
    <div class="pagination"><?php echo $list->render(); ?></div>
    </form>
</div>
<script src="/static/js/admin.js"></script>
</body>
</html>